package com.yunc.modules.shop.entity.converter;

import com.yunc.modules.shop.entity.Shop;
import com.yunc.modules.shop.entity.dto.ShopDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ShopConverter {

    ShopConverter INSTANCE = Mappers.getMapper(ShopConverter.class);

    @Mappings({
            @Mapping(target = "company", ignore = true)
    })
    ShopDTO domain2dto(Shop shop);
}
